<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import '@/utils/browser-version-control'
import printDialog from '@/components/print-dialog.vue'
const locale = zhCn
document.body.ondrop = (e: Event) => {
  e.preventDefault()
  e.stopPropagation()
}
const printDialogRef = ref()
onMounted(() => {
  window.printDialogRef = printDialogRef
})
</script>

<template>
  <el-config-provider :locale="locale">
    <div id="nav">
      <router-view />
    </div>
    <print-dialog ref="printDialogRef" />
  </el-config-provider>
</template>

<style>
#app {
  font-family: 'MicrosoftYaHei', Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  width: 100%;
  height: 100vh;
}
body {
  margin: 0;
}
#nav {
  height: 100%;
}
@font-face {
  font-family: 'TWIG';
  src: url('~@/assets/fonts/DINMittelschriftLTW1G.otf');
}
</style>
